package com.tust.dao;

import com.tust.domain.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherDao {
    int insertTeacher(Teacher teacher);
    int deleteTeacher(@Param("teacherNum") String teacherNum);
    int updateTeacher(@Param("oldTeacherNum") String oldTeacherNum, @Param("teacher") Teacher teacher);
    List<Teacher> selectTeacherByTeacherNum(@Param("teacherNum") String teacherNum);
    List<Teacher> selectTeacherByTeacherName(@Param("teacherName") String teacherName);
    List<Teacher> selectTeacherByTeacherSex(@Param("teacherSex") String teacherSex);
    List<Teacher> selectTeacherByTeacherTitle(@Param("teacherTitle") String teacherTitle);
    List<Teacher> selectTeacherByTeacherEducation(@Param("teacherEducation") String teacherEducation);
    List<Teacher> selectTeacherByTeacherBirthday(@Param("teacherBirthday") String teacherBirthday);
    List<Teacher> selectTeacherByTeacherDepartment(@Param("teacherDepartment") String teacherDepartment);
    List<Teacher> selectTeacherAll();
}
